<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/supply-list.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
</head>
<body><tpl>include file ='../top.html'</tpl>
<div class="clear"></div>
<div id="container761">
	<div class="own_member_main">
		<tpl>include file ='own_menu.html'</tpl>
		<div class="member_right">
<form method="post" name="supply_list" id="supply_list" >
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#DDE0E3" style="overflow:visible; margin-top:10px" >
<tr><td colspan="10"></td></tr> 
<tr class="tr_FAFAFA">
          <th align="center" valign="middle" width="5%" align="center"><tpl> $langProductMSelect </tpl></th>
		  <th align="center" valign="middle" width="39%"><tpl> $langSupplyTitle </tpl></th>
		  <th align="center" valign="middle" width="15%"><tpl> $langSupplyAddTime </tpl></th>
		  <th align="center" valign="middle" width="8%"><tpl> $langCedit </tpl></th>
		  </tr>
		 
		<tpl> section name=i loop=$supply_array </tpl>
		<tr>
			<td align="center" valign="middle" class="tr_dotted"><input type="checkbox" name="s_id[]" value="<tpl> $supply_array[i].s_id </tpl>" /></td>
			<td align="left" valign="middle">
			<tpl> if $supply_array[i].s_type eq 1 </tpl>[<tpl> $langSupplyTypeQiu </tpl>]<tpl> /if </tpl>
			<tpl> if $supply_array[i].s_type eq 2 </tpl>[<tpl> $langSupplyTypeGone </tpl>]<tpl> /if </tpl>
			<tpl> if $supply_array[i].s_recommend eq 1 </tpl><strong><font color="#FF0000" > [<tpl> $langSupplyTypeJian </tpl>] </font></strong><tpl> /if </tpl>
			<a class="list-title" target="_blank" href="index.php?action=view&sid=<tpl> $supply_array[i].s_id </tpl>"><tpl> $supply_array[i].s_title </tpl></a>
			</td>  
			<td align="center" valign="middle">
			<tpl> $supply_array[i].s_time </tpl>
			</td>
			<td align="center" valign="middle">
			<a href="member.php?action=modi&sid=<tpl> $supply_array[i].s_id </tpl>"><tpl> $langCmodi </tpl></a>
			</td></tr>
		<tpl> /section </tpl>
		
		</table>
		<tpl> if $supply_array[0].s_id neq '' </tpl>
			<div style="background:#F3F3F3; padding:5px 10px 0px 10px; text-align:left; height:25px; text-align:left;"><input  type="button" value="<tpl> $langCAllNotSelect </tpl>" id="control_seclect" name="control_seclect"  class="new_anniu inp-inp"/>
			<input class="new_anniu  inp-inp" type="button" value="<tpl> $langCdele </tpl>" id="supply_del" name="supply_del"/></div>
			<div style="float:right; padding:10px"><tpl> $page_list </tpl></div>
		<tpl> /if </tpl>
</form>
</div>
	</div>
	<tpl> include file ='../../../../html/footer.html' </tpl>
</div>
</body>
</html>
<script>
$('#control_seclect').click(
	function(){
		$('#supply_list input[@type=checkbox]').each(function(){
			$(this).attr('checked',!$(this).attr('checked'))
		})
	}
)
$('#supply_stop').click(
	function(){
		$('#supply_list').attr("action", "member.php?action=change_state&state=2");
		$('#supply_list').submit();
	}
)
$('#supply_del').click(
	function(){
		if(confirm('<tpl> $langCConfirmDelete </tpl>')){
			$('#supply_list').attr("action", "member.php?action=del");
			$('#supply_list').submit();
		}
	}
)
$('#supply_start').click(
	function(){
		$('#supply_list').attr("action", "member.php?action=change_state&state=1");
		$('#supply_list').submit();
	}
)
</script>